#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
	SleekXMPP: The Sleek XMPP Library
	Copyright (C) 2010  Nathanael C. Fritz
	This file is part of SleekXMPP.

	See the file LICENSE for copying permission.
"""

import os
import sys

# Python versions before 3.0 do not use UTF-8 encoding
# by default. To ensure that Unicode is handled properly
# throughout SleekXMPP, we will set the default encoding
# ourselves to UTF-8.
if sys.version_info < (3, 0):
	reload(sys)
	sys.setdefaultencoding('utf-8')
else:
	raw_input = input

""" ########## CODE ########## """

# признанный метод нахождения текущей папки
#workspace = os.path.dirname(os.path.abspath(__file__))

# определяем путь к программе и файлу настроек
workspace = os.path.abspath(os.curdir)
settings = os.path.join(workspace, 'settings.ini')

sys.path.append(os.path.join(workspace, 'libraries'))



if __name__ == '__main__':

	from pyjick.nest import Nest

	nest = Nest(workspace, settings)
	nest.build()
